package com.cy.sort;

/**
 * @Author: chenyun
 * @Date: 2021/09/13/22:08
 * @Description:
 */

// 插入排序
public class InsertSort {

    public void insertSort(int[] arry){
        for (int i = 1; i < arry.length; i++) {
            for (int j = i-1; j >=0; j--) {
                if(arry[i]>arry[j]){
                    int tem = arry[i];
                    arry[i] = arry[j];
                }
            }
        }
    }

}
